package com.zlyx.easy.mybatis.mapper.provider;

import com.zlyx.easy.core.tool.EasyBuffer;

/**
 * @Auth 赵光
 * @Describle
 * @2019年1月7日 下午12:58:04
 */
public class MybatisSqlProvider {
	
	public final static String PAGE = "page";
	
	public final static String SQL = "sql";
	
	public String page(String sql, int pageSize, int pageNum) {
		return EasyBuffer.wrapper(sql, "limit ", (pageNum-1)*pageSize, ",", pageNum*pageSize);
	}

	public String sql(String sql) {
		return sql;
	}
}
